package com.iotechn.unimall.launcher.model;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2018-08-12
 * Time: 上午10:35
 */
@Data
public class GatewayResponse {
    private int errno;
    private String errmsg;
    private Object data;
    private long timestamp;


//    public static void main(String[] args) {
//        Map<String,Object> map =new HashMap<>();
//
//
//        List<Map<String,Object>> items = new ArrayList<>();
//        for(int i = 0;i< 26 ;i++){
//            Map<String,Object> item = new HashMap<>();
//            item.put("registrationNumber","农机号");
//            item.put("clientName","农机名");
//            item.put("measure",1000);
//            item.put("taskstate","4");
//            item.put("latlng","117.956281,33.923837");
//            item.put("driver","司机");
//            item.put("createDate","2020-01-01 00:00:00");
//            item.put("linker","");
//            item.put("pics","");
//            items.add(item);
//        }
//        map.put("data",items);
//        System.out.println(JSON.toJSONString(map));
//
//    }
}
